﻿using Glue.Converters;
using Xunit;

namespace GlueTests.BaseConverterTests
{
    public class When_mapping_between_primitives_that_are_null
    {
        [Fact]
        public void Should_not_throw_exception_when_towardsObject_is_primitive_and_null()
        {
            IConverter converter = new ShortLongConverter();
            Assert.Equal((short)1,converter.Map((long)1,null));
        }

        [Fact]
        public void Should_not_throw_exception_when_towardsObject_is_primitive_and_null_reverse()
        {
            IConverter converter = new ShortLongConverter();
            Assert.Equal((long)1, converter.Map((short)1, null));
        }
    }
}
